<div class="row">
<div class="col-12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="glyphicon glyphicon-align-justify"></i>									
			</span>
			<h5><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Thông tin ':'Thêm mới ').@strtolower($this->resource->RES_NAME);?></h5>
		</div>
		<div class="widget-content nopadding">
			<form method="post" action="<?php echo $this->url_edit . @$edit->{$this->{$this->model}->primaryKey}; ?>"  enctype="multipart/form-data" class="form-horizontal">
				<?php echo $this->atheme->group_input2('edit[RES_NAME]', 'Tên tài nguyên', '', 'span6 ', @$edit->RES_NAME, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[RES_CODE]', 'Mã tài nguyên', '', 'span6 ', @$edit->RES_CODE, 'text', ''); ?>
				<?php echo $this->atheme->group_select2('edit[RESG_ID]','Nhóm: ','','', @$resource_groups,@$edit->RESG_ID); ?>
				<?php echo $this->atheme->group_input2('edit[RES_LINK]', 'Link:', '', 'span6 ', @$edit->RES_LINK, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[RES_ORDER]', 'Sắp xếp', '', 'span6 ', @$edit->RES_ORDER, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[RES_ICON]', 'Class Icon:', '', 'span6 ', @$edit->RES_ICON, 'text', ''); ?>
				
				 
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small"><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Save':'Add');?></button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
			</form>
		</div>
	</div>						
</div>
</div>